package com.gluck.cases.common.utils.enums;

/**
 * @ClassName CommonStatus
 * @Desc 通用status
 * @Author shiyongzhe
 * @Date 2022/6/3 - 10:38 下午
 **/
public enum CommonStatus {

    STOP(0, "不启用"),
    START(1, "启用");

    private Integer code;
    private String name;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return this.getName();
    }

    CommonStatus(Integer code, String name) {
        this.code = code;
        this.name = name;
    }
}
